package com.ai.bitcoin.jpa.service;

import com.ai.bitcoin.jpa.entity.BccPriceInfoCrawl;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.Date;
import java.util.List;

/**
 * @author Jason
 * @date 2018/4/6
 **/
public interface BccPriceInfoCrawlService {
    BccPriceInfoCrawl save(BccPriceInfoCrawl bccPriceInfo);

    Page<BccPriceInfoCrawl> findByBatchNo(String batchNo, Pageable pageable);

    List<BccPriceInfoCrawl> findByBccIdAndBatchNo(String bccId, String batchNo);

    void deleteByBatchNo(String batchNo);

    void deleteByCreateTimeLessThan(Date date);


}
